<?php
global $_GPC, $_W;
$uniacid = $_W['uniacid'];
$id = $_GPC['id'];
$cate_id = $_GPC['cate_id'];
$res = $this->res;
$plus = $this->plus;
load()->func('tpl');
$setting = $this->baseset($uniacid);
$allcate = pdo_fetchall("SELECT * FROM " . tablename($this->tablecate) . " WHERE uniacid = '{$_W['uniacid']} ' AND status=1 order by displayorder desc");
$allcateall = pdo_fetchall("SELECT * FROM " . tablename($this->tablecateall) . " WHERE uniacid = '{$_W['uniacid']} ' AND status=1 order by displayorder desc");
$indexcate = pdo_fetchall("SELECT * FROM " . tablename($this->tablecate) . " WHERE uniacid = '{$_W['uniacid']} ' AND isindex=1 order by displayorder desc  LIMIT 7");
$indexcateall = pdo_fetchall("SELECT * FROM " . tablename($this->tablecateall) . " WHERE uniacid = '{$_W['uniacid']} ' AND isindex=1 order by displayorder desc  LIMIT 8");
$thiscate = pdo_fetch("SELECT * FROM " . tablename($this->tablecateall) . " WHERE uniacid = '{$_W['uniacid']}' AND status=1 AND id = '{$cate_id} '");
$info = pdo_fetchall("SELECT * FROM " . tablename($this->tabletop) . " WHERE uniacid = '{$_W['uniacid']}' AND status=1");
if (empty($info)) {
	message('无任何专题推荐！', $this->createWebUrl('index'), 'error');
}
$_share['desc'] = $setting['fxdes'];
$_share['link'] = $_W['siteroot'] . "app/index.php?i=" . $_W['uniacid'] . "&c=entry&do=list_tops&m=bsht_tbk";
$_share['imgUrl'] = tomedia($setting['fxlogo']);
$_share['title'] = "【专题推荐】 - " . $setting['fxtit'];
$pagename = '专题推荐';
$_W['page']['sitename'] = $setting['sitetitle'] . " - 专题推荐";
include $this->template('list_tops');